package com.yaoming.umengshare;

import com.umeng.socialize.bean.SHARE_MEDIA;
import com.yaoming.umengshare.R;

import java.io.Serializable;

/**
 * Created by zwj on 2015/12/25.
 */
public class SharePlatform implements Serializable{
    private SHARE_MEDIA media;
    private String name;
    private int icon;

    private SharePlatform(){}
    public SharePlatform(SHARE_MEDIA media, String name, int icon){
        this.media=media;
        this.name=name;
        this.icon=icon;
    }
    public SharePlatform(SHARE_MEDIA media){
        this.media=media;
        switch (media){
            case WEIXIN:
                icon=R.drawable.icon_weixin;
                name="微信好友";
                break;
            case WEIXIN_CIRCLE:
                icon= R.drawable.icon_pengyouquan;
                name="朋友圈";
                break;
            case SINA:
                icon=R.drawable.icon_xlweibo;
                name="新浪";
                break;
            case QQ:
                icon=R.drawable.icon_qq;
                name="QQ好友";
                break;
            case QZONE:
                icon=R.drawable.icon_qq_space;
                name="QQ空间";
                break;
            case TENCENT:
                icon=R.drawable.icon_txweibo;
                name="腾讯微博";
                break;
            case SMS:
                icon=R.drawable.umeng_socialize_sms_on;
                name="短信";
                break;
            case EMAIL:
                icon=R.drawable.umeng_socialize_gmail_on;
                name="邮件";
                break;
        }
    }
    public SHARE_MEDIA getMedia() {
        return media;
    }

    public void setMedia(SHARE_MEDIA media) {
        this.media = media;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

}
